Skip to content

gh-127319: Disable port reuse on HTTP, XMLRPC, and logging TCP servers #135405

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 15, 2025

Conversation

jeremycline
Copy link
Contributor

@jeremycline jeremycline commented Jun 11, 2025

Prior to issue #120485 these servers did not allow port reuse, which makes sense as the behavior of port reuse is surprising if you're not expecting it. It's unclear to me why these services were switched to allow port reuse, but I believe the desired behavior (unless subclasses opt in) is to not allow port reuse.

See also: https://bugzilla.redhat.com/show_bug.cgi?id=2323170

…servers

Prior to issue python#120485 these servers did not allow port reuse, which
makes sense as the behavior of port reuse is surprising if you're not
expecting it. It's unclear to me why these services were switched to
allow port reuse, but I believe the desired behavior (unless subclasses
opt in) is to not allow port reuse.

See also: https://bugzilla.redhat.com/show_bug.cgi?id=2323170
@jeremycline jeremycline requested a review from vsajip as a code owner June 11, 2025 19:30
@python-cla-bot
Copy link

python-cla-bot bot commented Jun 11, 2025

All commit authors signed the Contributor License Agreement.

CLA signed

@vsajip vsajip merged commit 2bd3895 into python:main Jun 15, 2025
45 checks passed
@hroncok
Copy link
Contributor

hroncok commented Jun 15, 2025

This needs a backport to 3.14, right?

@picnixz picnixz added the needs backport to 3.14 bugs and security fixes label Jun 15, 2025
@miss-islington-app
Copy link

Thanks @jeremycline for the PR, and @vsajip for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 15, 2025
…servers (pythonGH-135405)

Prior to issue pythonGH-120485 these servers did not allow port reuse, which
makes sense as the behavior of port reuse is surprising if you're not
expecting it. It's unclear to me why these services were switched to
allow port reuse, but I believe the desired behavior (unless subclasses
opt in) is to not allow port reuse.

See also: https://bugzilla.redhat.com/show_bug.cgi?id=2323170
(cherry picked from commit 2bd3895)

Co-authored-by: Jeremy Cline <jeremycline@linux.microsoft.com>
@bedevere-app
Copy link

bedevere-app bot commented Jun 15, 2025

GH-135538 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Jun 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants